package filters;

import java.awt.Color;

public class FilterScale extends Filter{
	
	public static final int NOIR = Color.BLACK.getRGB();
	public static final int BLANC = Color.WHITE.getRGB();
	
	public FilterScale(String file320) {
		super(file320);	
	}
	
	public Object check320(int x1,int y1,int x2,int y2){
		// 100 * COULEUR / BLANC => %Scroll 
		//on part de la tete
		float scroll = (100 * (file320.getRGB(x1, y1)) / NOIR);
		return (scroll/100);
	}
}
